package com.dz.xjd.bean;

import java.io.Serializable;

public class BaseRespose<T> implements Serializable {

    public int code;
    public String msg;
    public T data;

    public boolean success() {
        return 0 == code;
    }

    @Override
    public String toString() {
        return "BaseRespose{" +
                "code='" + code + '\'' +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }
}
